//
//  LMPostContentController.m
//  舍品
//
//  Created by 楼 眉 on 16/3/29.
//  Copyright © 2016年 楼 眉. All rights reserved.
//
static            CGFloat           const              KNickNameFontValue        =              14;
static            CGFloat           const              KTitleFontValue                    =              18;

#import "LMPostContentController.h"

@interface LMPostContentController ()
@property (nonatomic,weak)  UIImageView *iconView;
@property (nonatomic,weak)  UILabel *nicknameLabel;
@property (nonatomic,weak)  UILabel *titleLabel;
@property (nonatomic,weak)  UILabel *timeLabel;

@end

@implementation LMPostContentController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"帖子正文";
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self setupInvariantView];
}
#pragma mark - 加载固定控件
- (void)setupInvariantView
{
    UIImageView *iconView = [[UIImageView alloc]init];
    iconView.frame = CGRectMake(10*kUnit, CGRectGetMaxY(self.navigationController.navigationBar.frame) + 10*kUnit, 33*kUnit, 33*kUnit);
    iconView.backgroundColor = LMRandomColor;
    [CALayer LM_RoundedImageWIthImageViewCALayer:iconView.layer Width:iconView.width];
    iconView = iconView;
    [self.view addSubview:iconView];
    
    UILabel *nicknameLabel = [[UILabel alloc]init];
    nicknameLabel.font = [UIFont systemFontOfSize:KNickNameFontValue];
    nicknameLabel.frame = CGRectMake(CGRectGetMaxX(iconView.frame) + 10*kUnit, iconView.y, SCREEN_WIDTH /  2, iconView.height);
    nicknameLabel.textColor = RGBCOLOR(50, 50, 50);
    _nicknameLabel = nicknameLabel;
    [self.view addSubview:nicknameLabel];
    nicknameLabel.text = @"深刻的房间卡洛斯的减肥";
    
    UIView *geduanView1 = [[UIView alloc]init];
    geduanView1.frame = CGRectMake(iconView.x, CGRectGetMaxY(iconView.frame) + 10*kUnit, SCREEN_WIDTH - 20*kUnit, 1);
    geduanView1.backgroundColor = RGBCOLOR(220, 220, 220);
    [self.view addSubview:geduanView1];
    
    UILabel *titleLabel = [[UILabel alloc]init];
    titleLabel.font = [UIFont systemFontOfSize:KTitleFontValue];
    titleLabel.numberOfLines = 0;
    titleLabel.textColor = RGBCOLOR(50, 50, 50);
    _nicknameLabel = titleLabel;
    [self.view addSubview:titleLabel];
    titleLabel.text = @"深刻的房间卡洛斯的减肥";
}
#pragma mark -  didReceiveMemoryWarning
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
#pragma mark - dealloc
- (void)dealloc
{
    NSLog(@"dealloc--postContentVc");
}
@end
